package craky.componentc;

import java.awt.event.ActionEvent;

/**
  * @author Darkness
  * @date 2011-12-8 上午11:21:01 
  * @version V1.0
 */
public class MenuManager {

	public void onClick(String actionCommand, ActionEvent e) {
		try {
			this.getClass().getMethod(actionCommand, ActionEvent.class).invoke(this, e);
		} catch (IllegalAccessException e1) {
			JCMessageBox.createWarningMessageBox(null, "提示", actionCommand+"方法无法访问，请确保类及方法均为public...").open();
		} catch (Exception e1) {
			JCMessageBox.createWarningMessageBox(null, "提示", actionCommand+"方法未实现...").open();
		} 
	}
}
